{% extends "base.html" %}

{% block title %}Login Test{% endblock %}

{% block content %}

<h2>Login</h2>

{% if username %}
  <div id="logged-in">
    <h3>Welcome back, <span class="username">{{ username }}</span></h3>
  </div>
{% endif %}

<form action="/login_test/" method="post">
  <fieldset>
    <legend>Login form</legend>
    
    <p class="username">
      <label for="username">Username:</label>
      <input type="text" id="username" name="username">
    </p>
    
    <p class="password">
      <label for="password">Password:</label>
      <input type="password" id="password" name="password">
    </p>
    
    <p class="submit">
      <input type="submit" name="submit" value="Submit">
    </p>
  </fieldset>
</form>

{% endblock %}